package com.jkp.excel.utils;

import static org.junit.Assert.*;

import org.junit.Test;

public class BookCodeExtractorShould {

	@Test
	public void test() {
		assertEquals("_q&a",BookCodeExtractor.regExtractBookCode("kauna hari hamaro tumharo nata_q&a").getCode());
		String actual = BookCodeExtractor.regExtractAuxCode("shyama ma jo teri pad raj hi instrumental");
		assertEquals(" instrumental",actual);
		assertEquals(" part2",BookCodeExtractor.regExtractAuxCode("meri radhe rani maharani part2"));
		assertEquals(" part1",BookCodeExtractor.regExtractAuxCode("meri radhe rani maharani part1"));
		assertEquals(" part 1",BookCodeExtractor.regExtractAuxCode("radhe adhadhundh darbar rate ja radheradhe Part 1"));
		assertEquals(" part 2",BookCodeExtractor.regExtractAuxCode("radhe adhadhundh darbar rate ja radheradhe Part 2"));


		assertEquals(" vyakhya",BookCodeExtractor.regExtractAuxCode("nit seva mangun shyama shyam teri vyakhya"));
		assertEquals(" part2 vyakhya",BookCodeExtractor.regExtractAuxCode("nit seva mangun shyama shyam teri part2 vyakhya"));
		assertEquals(" vyakhya",BookCodeExtractor.regExtractAuxCode("nit seva mangun shyama shyam teri vyakhya"));
		assertEquals(" part 1 vyakhya",BookCodeExtractor.regExtractAuxCode("tu hi tu hi tu hi to hai mera nandanandana part 1 vyakhya"));
		assertEquals(" with explanation",BookCodeExtractor.regExtractAuxCode("mere guruvar pyare mere giridhar pyare with explanation"));
		assertEquals(" part 2",BookCodeExtractor.regExtractAuxCode("kaho hari kahan rahyo tava nyaya yakhya part 2"));
		assertEquals(" part1 vyakhya",BookCodeExtractor.regExtractAuxCode("natha jani aba mo kahan bahakaya part1 vyakhya"));
		assertEquals(" vyakhya part 6",BookCodeExtractor.regExtractAuxCode("shyam mohin dehu prem nishkama vyakhya part 6"));
		//assertEquals(" part 1+2",BookCodeExtractor.regExtractAuxCode("suno man ek kam ki bata vyakhya part 1+2"));
		//assertEquals(" part 3+4",BookCodeExtractor.regExtractAuxCode("suno man ek kam ki bata vyakhya part 3+4"));
		assertEquals(" part 2 vyakhya",BookCodeExtractor.regExtractAuxCode("suno man ek anokhi bata part 2 vyakhya"));
		assertEquals(" dupliacte",BookCodeExtractor.regExtractAuxCode("mere nandanandana mere nandanandana dupliacte"));
		assertEquals(" vyakha part2",BookCodeExtractor.regExtractAuxCode("toson na nilaja kou kanha vyakha part2"));
		assertEquals("_q&a",BookCodeExtractor.regExtractBookCode("kauna hari hamaro tumharo nata_q&a"));
	}

}
